Special folder

On Microsoft Windows, a special folder is a folder which is presented to the user through an interface as an abstract concept, instead of an absolute folder path. This makes it possible for an application to ask the operating system where an appropriate location for certain kinds of files can be found, regardless of what version or language of operating system is being used.

Contents

Overview

Windows uses the concept of special folders to present the contents of the storage devices connected to the computer in a fairly consistent way that frees the user from having to deal with absolute file paths, which can (and often do) change between operating system versions, and even individual installations. The idea has evolved over time, with new special folders being added in every version of Windows since their introduction in Windows 95.

Microsoft's "Designed for Windows" logo requirements[1] state that an application must make use of special folders locations to locate the appropriate folders in which documents and application settings should be stored.

A special folder can either be a reference to a physical file system directory, or a reference to a "virtual" folder. In the former case, they are analogous to environment variables — in fact, many of the environment variables that are set in a user's session are defined by where the special folders are set to point to.

Virtual folders, however, do not actually exist on the file system; they are instead presented through Windows Explorer as a tree of folders that the user can navigate. This is known as the Shell namespace. On Windows XP systems, the root of this namespace is the Desktop virtual folder, which contains the My Documents, My Computer, My Network Places (Network Neighborhood in Windows 95 and 98) and Recycle Bin virtual folders. Some virtual folders (like Desktop) have an accompanying special folder that is a reference to a directory on the physical file system. Windows Explorer displays the combined contents of a virtual folder and its associated file system folder to the user. This can be seen in Figure 1, which shows the Folder view in Windows XP's Explorer; in the Desktop virtual folder, the four standard virtual folders can be seen, as well as an additional folder, "a folder on the desktop", which is a real folder located in the Desktop directory in the user's profile.

Some third-party programs add their own virtual folders to Windows Explorer.

List of special folders

The following tables list most of the file system and virtual folders that are available as of Windows Vista. The OS version in which each special folder was introduced is given as well.

File system directories

Special folder Represents Default Location
(in English. Non-English versions of Windows XP or earlier will use directory names appropriate to that language.)
OS
Application Data Per-user application-specific files
On Windows 2000 and Windows XP
%USERPROFILE%\Application Data
On Windows Vista and later
%USERPROFILE%\AppData\Roaming
&1998 98
Cookies Internet Explorer browser cookies %USERPROFILE%\Cookies &1998 98
Desktop Directory Files stored on the user's desktop %USERPROFILE%\Desktop &1995 95
Favorites User's Favorites %USERPROFILE%\Favorites &1998 98
Fonts Container folder for installed fonts %windir%\Fonts &1995 95
History User-specific browser history %USERPROFILE%\Local Settings\History &1998 98
Internet Cache User-specific Temporary Internet Files %USERPROFILE%\Local Settings\Temporary Internet Files &1998 98
Local Application Data User-specific and computer-specific application settings
On Windows 2000 and Windows XP
%USERPROFILE%\Local Settings\Application Data
On Windows Vista and later
%USERPROFILE%\AppData\Local
&2000 2000/ME
My Documents User's documents
On Windows 2000 and Windows XP
%USERPROFILE%\My Documents
On Windows Vista and later
%USERPROFILE%\Documents
On Windows 98 and Windows Me
C:\My Documents
&1998 98
My Music User's music
On Windows XP
%USERPROFILE%\My Documents\My Music
On Windows Vista and later
%USERPROFILE%\Music
&2001 XP
My Pictures User's pictures
On Windows XP
%USERPROFILE%\My Documents\My Pictures
On Windows Vista and later
%USERPROFILE%\Pictures
&2001 XP
My Videos User's video files
On Windows XP
%USERPROFILE%\My Documents\My Videos
On Windows Vista and later
%USERPROFILE%\Videos
&2001 XP
Programs User-specific "(All) Programs" groups and icons %USERPROFILE%\Start Menu\Programs &1995 95
Recent User-specific "My Recent Documents" %USERPROFILE%\Recent &1998 98
Send To User-specific "Send To" menu items %USERPROFILE%\SendTo &1998 98
Start Menu User-specific "Start Menu" items %USERPROFILE%\Start Menu &1998 98
System The Windows system directory %windir%\system32 &2000 2000
Saved Games User's Saved Games %USERPROFILE%\Saved games &2007 Vista
Templates User-specific document templates %USERPROFILE%\Templates &1998 98

Notes:

  1. The "Desktop" virtual folder is not the same thing as the "Desktop" special folder. The Desktop virtual folder is the root of the Windows Shell namespace, which contains other virtual folders.[2]
  2. "Local Application Data" differs from "Application Data" in that files located in the "Local" variant are also intended to be specific to the machine it is on. This only has relevance if the user's profile is a Roaming Profile in a Windows Server domain environment.[3]
  3. As with Desktop, the "My Documents" virtual folder differs from the "My Documents" special folder. If the virtual folder variant is asked for, it will appear in a file dialog as a sub-directory of the "Desktop" virtual folder, instead of the user's profile directory as it physically exists on the hard drive.
  4. If the "My Documents" folder is moved (e.g., to a network drive), attempting to access it via the shell variable will go to the original, default location.

Virtual folders

Virtual Folder Represents OS
Recycle Bin The aggregated contents of the Recycle Bin on all drives for the current user &1998 98
Control Panel Icons for Control Panel (Windows) applets &1995 95
Desktop The Windows Desktop &1995 95
Drives My Computer; contains virtual folders representing everything on the local machine, as well as mapped network drives &1998 98
Internet Resources located on the Internet; WebDAV connections, etc. &1995 95
My Documents Virtual folder of the user's My Documents folder; used as a child of the Desktop virtual folder &1998 98
Network Network Neighborhood (Windows 95 and 98) or My Network Places (Windows 2000 and later); contains virtual folders for representing all network resources &1998 98
Search Results Listing of the results of the last search of the computer (appears only after a search) &2000 2000[4]
Printers Container folder for installed printers &1995 95

Notes:

  1. The "Desktop" virtual folder is not the same thing as the "Desktop" special folder. The Desktop virtual folder is the root of the Windows Shell namespace, which contains other virtual folders.[2]
  2. As with Desktop, the "My Documents" virtual folder differs from the "My Documents" special folder. If the virtual folder variant is asked for, it will appear in a file dialog as a sub-directory of the "Desktop" virtual folder, instead of the user's profile directory as it logically exists on the hard drive.

See also

References

  1. ^ http://www.microsoft.com/whdc/winlogo/ Windows Logo Program
  2. ^ a b The Shell Namespace
  3. ^ Chen, Raymond (2006). "Taxes". The Old New Thing (1st edition ed.). Pearson Education. p. 451. ISBN 0-321-44030-7. 
  4. ^ Paul Thurrott's SuperSite for Windows: Windows 2000 Professional Beta 3 Reviewed

External links